<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>封装自己的reverse方法(数组)</title>
	<script type="text/javascript">
		var arr=[1,2,3,4,5,6,7,8,9,10];
		function getReverse(arr){
			var arr1=[];
			for(var i=arr.length-1;i>=0;i--) {
				arr1.push(arr[i]);
			}
			console.log(arr1);
		}
		getReverse(arr);
	</script>
</head>
<body>
	
</body>
</html>